package com.link_with_health.mapper;

import com.link_with_health.model.HospitalEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface HospitalMapper {
    HospitalEntity queryHospitalsById(Long id);
    HospitalEntity queryHospitalsByDoctorId(Long id);
    List<HospitalEntity> queryHospitalsByName(String name);
    List<HospitalEntity> queryHospitalsByExactArea(Integer divisionId);
    List<HospitalEntity> queryHospitalsByWideArea(Integer divisionId);
    List<HospitalEntity> queryHospitalsByGrade(Integer grade);
    List<HospitalEntity> queryAllHospitals();
    int insertHospitals(HospitalEntity hospital);
    int updateHospitals(HospitalEntity hospital);
    int deleteHospitals(Long id);
}
